package cn.edu.nuc.crm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.edu.nuc.crm.entity.Account;

public interface AccountMapper {
    int deleteByPrimaryKey(Integer accountid);

    int insert(Account record);

    int insertSelective(Account record);

    Account selectByPrimaryKey(Integer accountid);

    int updateByPrimaryKeySelective(Account record);

    int updateByPrimaryKey(Account record);
    
    Account findByAccount(String accountname);
    /**
	 * 列出用户列表
	 * @return
	 */
	List<Account> account();

	int count();

	List<Account> findByid(@Param("start")int start,@Param("offset")int offset);
	//单个用户
	List<Account> findByid1(@Param("accountname")String accountname,@Param("start")int start,@Param("offset")int offset);
	
	List<Account> selectByname(String accountname);
}